Changed max num of gallery images to 30 to help with speed.
Removed redundant pg1 tint step in flock's draw method
Improved logic for creating gallery html with jinja2