added support for file:// image resolutions and made some bug fixes; fixes #37