Added auto resize of images uploaded by users