Implement the drag-to-view image feature