Issue #2531678 by mondrake, MattA: The 'create_new' and 'rotate' image operations do not release memory