Implemented image loading and first sample rat