updating compressed image