modal photo preview bug fixed