ticket:5 Added test for uploading and resizing photo