New method to get cropped bytes from files