use WORK_DIR to attach the images generated by phantom