#19 Refactor image handling. Use current time as server time timestamp. Tests.