Fix time format, and change upload to only accept images