Code reestructuration. Added entropy to image features