factored out the repetitive updates in load_image, load_file, load_key:

trying to figure out if there's a way to update these automatically, but without using a timer?