add jquery code to disable preview image if option is do nothing or delete