You can try resizing them with photo-editing software on your home computer. Usually the sideways thing is from the photo being too high resolution (72 ppi is good) and/or the measurements exceed the space.
Don't know about upside down though.
Don't know about upside down though.