Abstracted image manipulation in new class

Signed-off-by: Fadion Dashi <jonidashi@gmail.com>