plotting helper functions for raster and scaled vector graphics