changed code for jpeg pics 123