fix a problem that happens when a 'friend' asks a resized file
Merge pull request #206 from giastfader/master

fix a problem that happens when a 'friend' asks a resized file