remove image tag inside thumbnails, replace with background-image, add javascript to keep frame ratio consistent. Add vertical align middle on the caption text