* added try block on file open in image