Proportionally scale images that have dimension attributes