image type now comes from girdfs file