Merged in changes from another project

Updated image size method to use quicker and more reliable curl.