Added rectangle graphics
Print errors in painter thread
Render layout based on size