Fixing image drag bug