Sometime get_image is used to pull a file.. if cutout is None then just pull the file, don't test to ensure its a valid image.  also added some error code to update_header and PEP-8 fixes.