ratio 3/4 change and refactoring image uploading