I have a MS SQL 2005 database that holds images in it. When my php script runs it displays part of the image but it stops before finishing it. This is my code.