added some provisions for scaling

max-width, etc.