Fixed NullpointerExc in DepictionImage generation