Fixed placeholderImage to support jpg/gif files as well as png.