Updating image preview functions.