refactored jpeg processor, thumb generation
major refactoring of table indexes via migration files