save small, medium, and large versions of uploaded photo in server.