improved ImageCreator thanks to @pborreli