Changed the resize photo action