Try to derive filename from imageFile where one is not present.