fix scaling problem for single image layout