allow rendering a arbitrary sized image