Add support for remote images

Add error handling when reading/writing files
Add ability to draw text box and auto fit text and align text