Upload module: adjusted to accept image formats other than JPG for upload