adding method that can be used to update some values
change date formate to display loacl time
fixed issue where the image woudl crash when given a nill image ast string to encode