Image resizing for marker