Made sure thumbnails are correctly loaded and scaled, which leads to less memory usage. Also added first implementation of detail view for pictures