- Fixed a division by zero bug.
- Added some work arounds for the selected resources list, there
are some problems on the resize and the clicks there.
- Added the last color clicked code, it will be needed for the
image export.