Added thumbnail code + imports