translate to pixel when calculating dimensions
resource translation for image dnd