fixes for make picture scripts