simplified encoder. image generation. makefile modified.