added support for only drawing objects that have an image