#211 #206 refactoring for resized photo save