Potential bugfix when recycling images