Added check for zero length file being passed to renderPictures.