Fixing pages if no image is uplaoded