Refactors thumbnail - removes extra condition to check if there is a small image attached to an original one.