bytea -> text for images and thumbnails

iOS and Android encode pictures for uploading anyway, bytea's hex encoding causes trouble when decoding