issue #4, add new type of ratio for image, improve code related to media