fix JS to apply orientation CSS to only new image