Fixed a bug with finding correct picture.