Mouse rendering function