fix bug: crash if image file not found