change signature of the getPicture fn