Now supports multiple extensions, e.g. p_extensions=bmp,jpg,png