HenryGR and AaronASterling, thanks both for the advice, unfortunately it still doesn't work when I enclose the variables in quotation marks, when I add a semi colon to the end of lines or when I replace the 'new array' text with just the square brackets [].
If there is anything else you think is posibly wrong, however small it would be great if you could post it.
And i assume that in the code I don't have to actually explicitly create the variables 'image' and 'number'. Or do I?