handling nil caption text
moving text drawing to clj
removing java DTO