added imgclip javascript