Adjust grid bounds and image scaling