Images are stored in Javascript array and removed from DOM