relocate images to fit image box