fix settings
add allocation / capacity in to_image

M