better imageId generation
layout