Added support for scaling of custom_objects drawn in 3D space.