reimplemented ability to use images