fix for gradient box images being too big at certain sizes