first working version of image replacement

Signed-off-by: Andreas Geibert <ageibert@cemico.de>