added functionality (validate image) that if the image is not valid an
empty byte array is saved (not null)
set date as a timestamp (string value)