switched image to rows/columns instead of width/height