Fix potential bug in image file name