Added aspectratio checking