Added separate function for resource series and thumbnails
Added model factory class