fixed a missing stmt->close()
added the picture loading and displaying thingy