Added makeGraphic function to enable bitmap resizing