error checking in image upload - not working??
tidying code
tidying code
tidying code
tidying code
tidying code