Fixed some bug with item queries.
Moved the mainColor variable into the drawing function for dynamic colors.