added edit image function to inventory