Color editing, crash bug fix

Changing colors of created rects and setting colors for new rects;
Initialize resize’s bools to false to prevent from crashing