Some graphics improvements

Resizing and optimization