translate image box to new format