portrait

edited js to check if the image is portrait or landscape