opening images and getting info