resize option bug fix

In resize_photo() self.filename was never filled with the file name of the current picture, which resulted in an error, that prevented pictures from being uploaded.