fix image/svg scaling in layered images