Implemented fillrect routine