Use an unscaled image to figure image dimensions (fixes #76)