Fixed bug #6561: imgMax and imgStart (IMGTEXT) not working properly