beginning of the new version : moving image things to external class

Signed-off-by: Lasconik <caillouxnicolas@gmail.com>