Issue #2925780 by mondrake, Mirnaxvb: Some arguments like "density" should be called before the source of the image instead of after.