add read from file for images