ticket:5 script for photo preview completed