extend image with specify ratio