add on close listener to enhance filter
change image path to tmp path
change image path to tmp path for heroku