alter image uploader and scaler to accept jpg