Working basic jpeg creation.