get image from file