image handling array altered