Fixed array parameters to reflect new image resizing behavior