add option to rotate for image url method