You're specifying a field size for your integer columns and the longblob column. You can't do that.
I don't do MySQL but I think the CREATE TABLE statement should be something like:
CREATE TABLE tbl_images
(
img_id int NOT NULL AUTO_INCREMENT,
name varchar (100) NOT NULL,
image longblob NOT NULL,
size int NOT NULL,
type varchar(12) NOT NULL,
PRIMARY KEY (img_id)
};