now onyl accepting very small iamges from buffer