added form alter to allow jpegs