Implemented thumbnail creation on photo upload