Fixed models, method delete() now also removes images and thumbnails