disable dragging on background images
remove unuseful code