open image directly from file