re-aligns image to make it appear correctly