File name must be absolute path when opened as image.