Fixing typo
Moving some complexity out of the database layer (mainly encoding image data)
Updating tests to reflect the changes in the data structure
Converting all other functions/tests to use int64 instead of strings for calling
Hooking CreateThumbnail directly to the ImageModel