corrected doDropImage