if(image == null)
{
blockComposer.begin(frame,AlignmentXEnum.Left,AlignmentYEnum.Top);
composer.setFont(bodyFont,12);
composer.setFillColor(new DeviceRGBColor(1,0,0));
blockComposer.showText("The file you uploaded wasn't a valid JPEG image!");
blockComposer.end();
// Move past the closed block!
frame.y = blockComposer.getBoundBox().getMaxY() + 20;
frame.height -= (blockComposer.getBoundBox().getHeight() + 20);