cleaned up some js and image_update.php