Prelimnary stuff to read pictures