how can i limit the size and the quality of the image displayed?
you can achieve this from workflows in aem ..
for more details please follow the below link if you want to do it in 6.2
AEM Developer Learning : Image Rendition with Cropping in AEM 6.2
yes i am working in 6.2 and thanks for the link