adjust image class to only return image if sent, otherwise act as class.