"Truthy"? 

update() is as it was - I simplified copy() by reusing update - because copy() calls clear() first and clear() sets images to [] and length to 0 I assumed that this was equivalent. however it is easy to revert this back to previous code. Let me know.