Adding exceptions in to File. Creating Factory tests for image.