Now checks to see that the file is actually an image (PNG, BMP, JPG, GIF, WBMP).
Also fixed bug where the imageIds list wasn't cleared after album upload, leading to new albums containing old image uploads.