scale for large images properly