draw image from bytearray in pgm obj and update view when functions are
applied.