Re-factored part of gfx_fill_rect added zooming

Added notes for future work as well.