Added free(_pixels) in clear method to release memory used by the image