Yes, maybe too complex for the job; but essentially I want to have both width and height. I simply let the user decide if he wants to supply both width and height or only width/height + aspect ratio.