update image functions