refactor thumbnail spec test and minor refactor of has_thumbnail mixin