fix paste image issue