Change how image instance variable is removed from partial