Completely revamped the tile control

Changed both image list orders to group by type. Changed tile button
click event. Added various static variables. Changed some methods to
static.