converted metal and mini to use imageBuf construct